package com.wt.chat.entity;

import java.util.Date;

public class Group {
	private Integer id;

	private Integer companyId;

	private Integer parentId;

	private String name;

	private Boolean status;

	private Date createTime;

	private Date updateTime;

	public Integer getId() {
		return id;
	}

	public Group setId(Integer id) {
		this.id = id;
		return this;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public Group setCompanyId(Integer companyId) {
		this.companyId = companyId;
		return this;
	}

	public Integer getParentId() {
		return parentId;
	}

	public Group setParentId(Integer parentId) {
		this.parentId = parentId;
		return this;
	}

	public String getName() {
		return name;
	}

	public Group setName(String name) {
		this.name = name;
		return this;
	}

	public Boolean getStatus() {
		return status;
	}

	public Group setStatus(Boolean status) {
		this.status = status;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public Group setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public Group setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public enum GroupStatus {
		/**
		 * 启用
		 */
		USABLE(true),
		/**
		 * 停用
		 */
		UNUSABLE(false);

		private boolean val;

		GroupStatus(boolean val) {
			this.val = val;
		}

		public boolean isVal() {
			return val;
		}
	}
}